package com.itheima.controller;

import com.itheima.domain.ClassQueryParam;
import com.itheima.domain.PageResult;
import com.itheima.domain.Result;
import com.itheima.domain.pojo.OperateLog;
import com.itheima.service.LogSelectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogSelectController {
    @Autowired
    private LogSelectService logSelectService;

    /**
     * 日志列表查询
     */
    @GetMapping("/page")
    public Result pageLogs(ClassQueryParam queryParam) {
        PageResult list = logSelectService.pageLogs(queryParam);
        return Result.success(list);
    }
}

